package com.elastic.strategy;

import com.elastic.strategy.interfaces.Discount;

public class MovieTicketClient {
    public static void main(String[] args) {

        MovieTicket movieTicket = new MovieTicket();

        Double originalPrice = 60.0;

        movieTicket.setPrice(originalPrice);

        Discount discount = new ChildrenDiscount();
        movieTicket.setDiscount(discount);

        Double currentPrice = movieTicket.getPrice();

        Discount discount1 = new StudentDiscount();


        System.out.println(currentPrice);


    }


}
